package com.youdianstar.app.entity


/**
 * File: PaymentResult
 * Author: 82149 Create: 2021/11/26
 * Changes (from 2021/11/26)
 * --------------------------------------------------
 * description: 支付请求结果
 * ---------------------------------------------------
 *
 */
data class PaymentResult(
    //支付方式: 0-钱包支付 1-卡支付 2-亲情圈 3-Apple 4-google 5-paypal 6-weChat 7-aliPay
    val paymentMethod: Int = 0,
    //流水类型：1-租借 3-会员 5-押金 7-罚金 9-添加卡
    var type: Int,
    //支付金额
    val amount: Double=0.0,
    //税率
    var tax:Double = 0.0,
    //税金
    var taxAmount:Double = 0.0,
    //支付时间
    val paymentTime: Long?=null,
    //是否免单
    var isFree:Boolean = false,
    //租借订单号/流水单号
    val orderNo: String?=null,
    //支付订单号
    val payOrderNo:String?=null,
    //订单Json 数据
    var orderJson:String?=null,

    //支付卡号
    var bankNo: String?=null,
    //支付秘钥(Stripe 前端支付)
    val clientSecret: String = "",

    //错误理由
    var failedReason: String?=null,
    // 1:成功 2：失败 3:需要校验
    val success: Int

)